import 'package:flutter_shop/pages/cart/order_confirm/entity/wx_order_info_data.dart';

wxOrderInfoDataFromJson(WxOrderInfoData data, Map<String, dynamic> json) {
	if (json['package'] != null) {
		data.package = json['package']?.toString();
	}
	if (json['appid'] != null) {
		data.appid = json['appid']?.toString();
	}
	if (json['sign'] != null) {
		data.sign = json['sign']?.toString();
	}
	if (json['partnerid'] != null) {
		data.partnerid = json['partnerid']?.toString();
	}
	if (json['prepayid'] != null) {
		data.prepayid = json['prepayid']?.toString();
	}
	if (json['noncestr'] != null) {
		data.noncestr = json['noncestr']?.toString();
	}
	if (json['timestamp'] != null) {
		data.timestamp = json['timestamp']?.toString();
	}
	return data;
}

Map<String, dynamic> wxOrderInfoDataToJson(WxOrderInfoData entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['package'] = entity.package;
	data['appid'] = entity.appid;
	data['sign'] = entity.sign;
	data['partnerid'] = entity.partnerid;
	data['prepayid'] = entity.prepayid;
	data['noncestr'] = entity.noncestr;
	data['timestamp'] = entity.timestamp;
	return data;
}